package com.itheima.kebian;

import java.util.HashMap;
import java.util.Map;

public class Demo03 {

    public static void main(String[] args) {
        HashMap<String, String> map = new HashMap<>(Map.of("马蓉", "宋喆", "小璐", "PGone"));
        System.out.println(map);
        Map.Entry<String, String> entry = Map.entry("宝强", "马蓉");
        Map.Entry<String, String> entry2 = Map.entry("乃亮", "小璐");
        Map<String, String> map2 = Map.ofEntries(entry, entry2);
        HashMap<String, String> map3 = new HashMap<>(map2);
        map3.put("haha","heihei");
        System.out.println(map3);

    }
}
